const type = {
    create: "create_data",
    update: 'update_data',
    remove: 'remove_data',
    removeAndInit: "removeAndInit_data",
};
const action = {
    create: (name, params, isInit) => {
        return { type: type.create, name, params, isInit: typeof isInit === 'boolean' ? isInit : false };
    },
    update: (name, params) => {
        return { type: type.update, name, params };
    },
    remove: (name) => {
        return { type: type.remove, name };
    },
    removeAndInit: (name) => {
        return { type: type.removeAndInit, name };
    },
};
export default {
    type,
    action
};
